this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};this.BX.Landing.UI=this.BX.Landing.UI||{};(function(t,e,n,i){"use strict";function a(){var t=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="landing-ui-field-use-case-link" onclick="','">\n\t\t\t\t\t',"\n\t\t\t\t</div>\n\t\t\t"]);a=function e(){return t};return t}function l(){var t=babelHelpers.taggedTemplateLiteral(['<span class="landing-ui-field-use-case-icon landing-ui-field-use-case-icon-default"></span>']);l=function e(){return t};return t}function s(){var t=babelHelpers.taggedTemplateLiteral(['\n\t\t\t\t<div class="landing-ui-field-use-case-layout">\n\t\t\t\t\t<div class="landing-ui-field-use-case-left">\n\t\t\t\t\t\t','\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="landing-ui-field-use-case-right">\n\t\t\t\t\t\t',"\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t"]);s=function e(){return t};return t}var r=function(t){babelHelpers.inherits(e,t);function e(){var t;var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};babelHelpers.classCallCheck(this,e);t=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(e).call(this,a));t.setEventNamespace("BX.Landing.UI.Field.UseCaseField");n.Dom.addClass(t.layout,"landing-ui-field-use-case");t.setTitle(i.Loc.getMessage("LANDING_USE_CASE_FIELD_TITLE"));t.cache=new n.Cache.MemoryCache;t.onLinkClick=t.onLinkClick.bind(babelHelpers.assertThisInitialized(t));n.Dom.replace(t.layout,t.getLayout());t.layout=t.getLayout();return t}babelHelpers.createClass(e,[{key:"getLayout",value:function t(){var e=this;return this.cache.remember("layout",function(){return n.Tag.render(s(),e.getIcon(),e.header,e.getLink())})}},{key:"getIcon",value:function t(){return this.cache.remember("icon",function(){return n.Tag.render(l())})}},{key:"setIcon",value:function t(e){n.Dom.style(this.getIcon(),"background-image","url(".concat(e,")"))}},{key:"getLink",value:function t(){var e=this;return this.cache.remember("link",function(){return n.Tag.render(a(),e.onLinkClick,i.Loc.getMessage("LANDING_USE_CASE_DEFAULT_CASE_TITLE"))})}},{key:"setLinkText",value:function t(e){this.getLink().textContent=e}},{key:"onLinkClick",value:function t(e){e.preventDefault();this.emit("onClick")}}]);return e}(e.BaseField);t.UseCaseField=r})(this.BX.Landing.UI.Field=this.BX.Landing.UI.Field||{},BX.Landing.UI.Field,BX,BX.Landing);
//# sourceMappingURL=usecasefield.bundle.map.js